{extend name="main/index" /}
{block name="main"}

<div class="content">

        <div style="margin-left: 17.666667%;margin-top: 60px;width:82.33333333%">
            <div class="widget">
                <div class="widget-content">
                    <div class="table-responsive">
                        <table data-sortable class="table table-hover table-condensed table-striped">
                            <tr>
                                <th data-sortable="false">Id</th>
                                <th data-sortable="false">角色名</th>
                                <th data-sortable="false">说明</th>
                                <th data-sortable="false">状态</th>
                                <th>拥有权限</th>
                                <th data-sortable="false">操作</th>
                            </tr>
                            {volist name="list" id="v"}
                            <tr>
                                <td><strong>{$v.id}</strong></td>
                                <td>{$v.name}</td>
                                <td>{$v.remark}</td>
                                <td>{$v.status? '启用' : '禁用'}</td>
                                <td><span class="label label-success">Active</span></td>
                                <td>
                                    <a href="{:url('/admin/Role/nodelist', ['id' => $v.id])}" class="btn btn-info">分配权限</a>
                                    <button class="btn btn-danger">删除</button>
                                </td>
                            </tr>
                            {/volist}
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

{/block}